<template>
  <div class="layout-page">
    <router-view />

<!-- 下面代码的属性，自己去官网查看，然后书写 -->
    <van-tabbar :route="true" v-model="active" :fixed="true">
      <van-tabbar-item to="/article" icon="fire">面经</van-tabbar-item>
      <van-tabbar-item to="/collect" dot icon="star-o">收藏</van-tabbar-item>
      <van-tabbar-item to="/like" :badge="88" icon="like-o">点赞</van-tabbar-item>
      <van-tabbar-item to="/user" icon="contact">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'LayoutPage',
  data () {
    return {
      active: 0
    }
  }
}
</script>

<style lang="less" scoped>
.van-tabbar-item--active {
  // color: red;
}
</style>
